﻿<Window x:Class="AutoDeploy.FrontEnd.EachStep"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Auto Deployer" Height="556" Width="883">
    <Grid Height="514">
        <GroupBox Header="Controls" Height="58" HorizontalAlignment="Left" Margin="10,449,0,0" Name="groupBox1" VerticalAlignment="Top" Width="839">
            <Grid Height="35">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="141*" />
                    <ColumnDefinition Width="680*" />
                </Grid.ColumnDefinitions>
                <Button Content="Run" Height="23" HorizontalAlignment="Left" Margin="6,6,0,0" Name="butRun" VerticalAlignment="Top" Width="169" Grid.ColumnSpan="2" Click="butRun_Click" />
                <Button Content="Back" Height="23" HorizontalAlignment="Left" Margin="51,6,0,0" Name="butBack" VerticalAlignment="Top" Width="155" Grid.Column="1" Click="butBack_Click"/>
                <Button Content="Next" Height="23" HorizontalAlignment="Right" Margin="0,6,305,0" Name="butNext" VerticalAlignment="Top" Width="157" Grid.Column="1" Click="butNext_Click" />
                <Button Content="Terminate" Height="23" HorizontalAlignment="Right" Margin="0,6,11,0" Name="butTerminate" VerticalAlignment="Top" Width="131" Grid.Column="1" Click="butTerminate_Click" />
                <Button Content="Run All" Height="23" HorizontalAlignment="Right" Margin="0,6,150,0" Name="butRunAll" VerticalAlignment="Top" Width="139" Grid.Column="1" IsEnabled="False" Click="butRunAll_Click" />
            </Grid>
        </GroupBox>
        <GroupBox Header="CommandsToRun" Height="188" HorizontalAlignment="Left" Margin="12,0,0,0" Name="groupBox2" VerticalAlignment="Top" Width="836"></GroupBox>
        <DataGrid Margin="24,22,24,335" Name="dgCommands" AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="True" >
            <!--MouseUp="dgCommands_MouseUp"-->
            <DataGrid.Columns>
                <!--<DataGridCheckBoxColumn Header="Run" IsReadOnly="False"  Binding="{Binding Path = Run, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" CanUserSort="False" CanUserReorder="False" CanUserResize="False" />-->
                <!--CellStyle="{StaticResource ResourceKey=}"-->
                <DataGridTemplateColumn Header="Run"
                    IsReadOnly="False"  
                    Width="Auto">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <CheckBox IsChecked="{Binding Path=Run, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Checked="CheckBox_Checked" Unchecked="CheckBox_Checked"/>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTextColumn Header="Priority" IsReadOnly="True" Binding="{Binding Path = Priority}" />
                <DataGridTextColumn Header="Command" IsReadOnly="True" Binding="{Binding Path = Command}" />
                <DataGridTextColumn Header="Value To Run" IsReadOnly="True" Binding ="{Binding Path = Value}"/>
            </DataGrid.Columns>
        </DataGrid>
        <GroupBox Header="Status" Height="265" HorizontalAlignment="Left" Margin="12,0,0,64" Name="groupBox3" VerticalAlignment="Bottom" Width="837">
            <Grid>
                <TextBox ScrollViewer.VerticalScrollBarVisibility="Visible"  Height="230"  HorizontalAlignment="Left" Margin="5,6,0,0" Name="tbStatus" Text="" VerticalAlignment="Top"  Width="820" Foreground="Lime" Background="Black" />
            </Grid>
        </GroupBox>
    </Grid>
</Window>